<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>Title</title>
</head>
<link href="../css/bootstrap.css" rel="stylesheet">
<link rel="stylesheet" href="../css/bootstrap-table.min.css">

<script src="../js/jquery-3.3.1.js"></script>
<script src="../js/bootstrap.bundle.min.js"></script>
<script src="../js/bootstrap-table.min.js"></script>
<script src="../js/bootstrap-table-zh-CN.min.js"></script>

<style>
    body
    {
        background-color: #f5f3e9;
    }

    #back
    {
        background-color: white;
        width: 800px;
        height: 500px;
        border: solid 1px black;
        box-shadow: 8px 8px 5px -4px rgb(0,0,0);
    }

    .input
    {
        border-bottom: 1px solid black;
        border-top:0px;
        border-left:0px;
        border-right:0px;
        outline: none;
    }

    .a
    {
        border-bottom:0px;
        border-top:0px;
        border-left:0px;
        border-right:0px;
        outline: none;
    }
</style>
<body>
<form action="/updateByPrimaryKeySelectivebg" method="post">
    <div>
        <div class="row">
            <div class="col">
                <caption>
                    <div style="margin-left: 1000px">
                        <input type="submit" class="btn btn-outline-primary" value="提交">
                        <input type="button" class="btn btn-outline-dark" onclick="fhaq()" VALUE="返回">
                    </div>
                </caption>
                <div   id="back"  class="container">
                    <div class="text-center">
                        <h4 style="margin-top: 20px">安全库存配置单</h4>
                    </div>
                    <div class="form-group">
                        <div class="row">
                            <div style="margin-top: 10px" class="col">
                                <span style="margin-left: 50px">配 置 单 编 号:&nbsp&nbsp</span><input class="input" type="text" name="storeid" value="${scell.storeid}" readonly>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="row">
                            <div style="margin-top: 20px" class="col">
                                <span style="margin-left: 50px">产 品 名 称:&nbsp&nbsp</span><input class="input"  type="text" name="prouctname" value="${scell.prouctname}" readonly/>
                                <span style="margin-left: 100px">产 品 编 号:&nbsp&nbsp</span><input class="input"  type="text" name="prouctid" value="${scell.prouctid}" readonly/>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="row">
                            <div class="col">
                                <span style="margin-left: 50px">库存报警下限数:&nbsp&nbsp</span><input class="input"  type="text" value="${scell.minamount}" name="minamount"/>
                                <span style="margin-left: 65px">库存报警上限数:&nbsp&nbsp</span><input class="input"  type="text" value="${scell.maxamount}" name="maxamount"/>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="row">
                            <div class="col">
                                <table  style="margin-top: 30px;text-align: center" class="container" border="1" width="750px">
                                    <tr style="background-color: #b3d2f2">
                                        <td>序号</td>
                                        <td>库房名称</td>
                                        <td>存储地址编号</td>
                                        <td>存储地址名称</td>
                                        <td>最大存储量</td>
                                    </tr>

                                    <tr>
                                        <td>1</td>
                                        <td>1</td>
                                        <td>1</td>
                                        <td>1</td>
                                        <td style="background-color: #faf1b0"><input style="background-color: #faf1b0" type="text" class="a" size="5" value="${scell.maxcapacityamount}" name="maxcapacityamount"></td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div style="margin-top: 20px" class="col">
                            <span style="margin-left: 100px">复 核 人:&nbsp&nbsp</span><input class="input" type="text" name="checker" value="${name}"/>
                            <span style="margin-left: 80px">变 更 时 间:&nbsp&nbsp</span><span id="date" ></span>
                        </div>
                    </div>

                    <div class="row">
                        <div style="margin-top: 70px" class="col">
                            <span style="margin-left: 75px;vertical-align: middle;margin-top: 40px">配 置 要 求:</span>
                        </div>
                    </div>

                    <div class="row">
                        <div style="margin-bottom: 50px;margin-left: 180px;transform:translateY(-60%)" class="col">
                            <textarea style="width: 550px;height: 100px" name="config">${scell.config}</textarea>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>
</body>
</html>

<script>
    function fhaq() {
        location.href="xiao_wen_bo/selectByPrimaryKeyfhbg.jsp";
    }

    function showTime() {
        var date = new Date();
        var year = date.getFullYear();
        var month = date.getMonth() + 1;  //因为month属性从0开始所以加1
        var day = date.getDate();   // 日


        var hour = date.getHours();
        var minute = date.getMinutes();
        var second = date.getSeconds();
        second = second < 10 ? "0" + second : second;
        var current = year + "-" + month + "-" + day + " "+ " " + hour + ":" + minute + ":" + second;
        document.getElementById("date").innerHTML = current;
    }

    setInterval("showTime()", 1000);//每隔1000毫秒（即1秒）显示一次当前时间
</script>
